import { HttpClient } from '@angular/common/http';
import {environment} from "../../environments/environment";
import { Injectable } from '@angular/core';

@Injectable()
export class Api{
    baseUrl=environment.baseurl;
    typeUrl="/film-project/filmApi/loadTyps.php";
    constructor(
        public hc:HttpClient
    ){

    }
    loadTypesData(){
        return this.hc.get(this.baseUrl+this.typeUrl)
                    .toPromise();
    }
}